package request

type AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest struct {
	/*
	   核销单id     */
	FulfilTaskId *int64 `json:"fulfil_task_id" required:"true" `
	/*
	   详细地址     */
	AddressDetail *string `json:"address_detail" required:"true" `
	/*
	   地址编码     */
	Location *int64 `json:"location" required:"true" `
}

func (s *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest) SetFulfilTaskId(v int64) *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest {
	s.FulfilTaskId = &v
	return s
}
func (s *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest) SetAddressDetail(v string) *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest {
	s.AddressDetail = &v
	return s
}
func (s *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest) SetLocation(v int64) *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest {
	s.Location = &v
	return s
}

func (req *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.FulfilTaskId != nil {
		paramMap["fulfil_task_id"] = *req.FulfilTaskId
	}
	if req.AddressDetail != nil {
		paramMap["address_detail"] = *req.AddressDetail
	}
	if req.Location != nil {
		paramMap["location"] = *req.Location
	}
	return paramMap
}

func (req *AlibabaServicecenterFulfiltaskBuyeraddressChangeRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
